//
//  HomeCell.swift
//  TODOApp
//
//  Created by chenyh on 2018/5/31.
//  Copyright © 2018年 chenyh. All rights reserved.
//

import UIKit

class HomeCell: UITableViewCell {

    @IBOutlet weak var titleL: UILabel!
    @IBOutlet weak var descL: UILabel!
    
    var homeModel: HomeModel? {
        
        didSet {
            guard let `homeModel` = homeModel else {
                return
            }
            titleL.text = homeModel.title
            descL.text = homeModel.content
        }
        
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }

}
